import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";

export const pageLicenseTypeAPI = (params: ParamsType) => {
  return pageData("/licenseType", params)
}

export const listLicenseTypeAPI = (params: DynamicObject) => {
  return listData("/licenseType", params)
}

export const addLicenseTypeAPI = (data: API.ILicenseType) => {
  return addData("/licenseType", data)
}

export const updateLicenseTypeAPI = (data: API.ILicenseType) => {
  return updateById("/licenseType", data)
}

export const deleteLicenseTypeAPI = (id: string | number) => {
  return deleteById("/licenseType", id)
}
